package com.runfast.waimai.service.impl;

import com.runfast.common.service.BaseService;
import com.runfast.waimai.dao.mapper.RunfastTransorderMapper;
import com.runfast.waimai.dao.model.RunfastTransorder;
import com.runfast.waimai.dao.model.RunfastTransorderExample;
import com.runfast.waimai.service.RunfastTransorderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RunfastTransorderServiceImpl extends BaseService<RunfastTransorder, Integer, RunfastTransorderExample> implements RunfastTransorderService {
   @Resource
    RunfastTransorderMapper dao;

    @Override
    public List<RunfastTransorder> findAndresshopperid(Integer page, Integer pageSize, Integer id) {
        return dao.findAndresshopperid(page, pageSize, id);
    }

    @Override
    public List<RunfastTransorder> findByresShopperId(Integer redshopperid, Integer status) {
        return dao.findByresShopperId(redshopperid,status);
    }

    @Override
    public RunfastTransorder findByorderCode(Integer orderid) {
        return dao.findByorderCode(orderid);
    }

    @Override
    public RunfastTransorder findByorderCode1(String orderCode) {
        return dao.findByorderCode1(orderCode);
    }
}